#coding=utf-8
from flask import render_template, abort
from jinja2 import TemplateNotFound

from apps.wuliu.models.wuliu import * 
from apps.wuliu.views.root import app

@app.route('/admin')
def index():
    try:
        return render_template('wuliu/admin/index.html', alpha_list=City.find_top_cities())
    except TemplateNotFound:
        abort(404)
